package com.shangguan.spring.mvc;

import com.shangguan.spring.mvc.business.RootConfig;
import com.shangguan.spring.mvc.web.AppConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * @ClassName: AppInitializer
 * @Description:
 * @Author: 一尘
 * @Date: 2020 年 04 月 16 22:01
 * @Version 1.0
 */
public class AppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class<?>[] { RootConfig.class };
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class<?>[] { AppConfig.class };
    }

    @Override
    protected String[] getServletMappings() {
        return new String[] { "/" };
    }

}
